package com.prothink.service.impl;


import com.prothink.dao.CourseSalesVolumeDao;
import com.prothink.entity.CourseSalesVolume;
import com.prothink.service.CourseSalesVolumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseSalesVolumeServiceMpl implements CourseSalesVolumeService {
    @Autowired
    private CourseSalesVolumeDao courseSalesVolumeDao;

    @Override
    public List getCourseSalesVolume(CourseSalesVolume courseSalesVolume) {
        return courseSalesVolumeDao.getCourseSalesVolume(courseSalesVolume);
    }

    @Override
    public Integer addCourseSalesVolume(CourseSalesVolume courseSalesVolume) {
        return courseSalesVolumeDao.addCourseSalesVolume(courseSalesVolume);
    }

    @Override
    public List getCourseWeekandModSalesVolume(CourseSalesVolume courseSalesVolume) {
        return courseSalesVolumeDao.getCourseWeekandModSalesVolume(courseSalesVolume);
    }

    @Override
    public List getBuyCourseSales(CourseSalesVolume courseSalesVolume) {
        return courseSalesVolumeDao.getBuyCourseSales(courseSalesVolume);
    }
}
